﻿Ext.Loader.setPath('Happy', '../../src');
Ext.require('Happy.fileupload.Window');
Ext.require('Happy.form.Panel');
Ext.require('Happy.form.LinkContainer');

Ext.onReady(function () {
    Ext.create('Ext.container.Viewport', {
        layout: 'fit',
        items: {
            xtype: 'happy-form',
            title: '上传文件演示',
            tbar: [
                {
                    text: '上传文件',
                    handler: function () {
                        Ext.create('Happy.fileupload.Window').show();
                    }
                }
            ],
            items: [
                {
                    xtype: 'happy-linkcontainer',
                    fieldLabel: '文件'
                }
            ]
        }
    });
});